<?php
class cTest extends \BaseController {
	public function index() {
		$this->loadView("vHeader");
		$this->loadView("vTest");
		
		echo JsUtils::getAndBindTo("#go", "click", "/Trivia/CTest/aller","{}","#divTarget");				
	
	}
	
	public function aller(){
		echo JsUtils::dialogPlus("/trivia/CTest/result","#frmSport","#answer","#sp", "btn-close", "btn-signal","btn-add", "Fermer", "Signaler","Ajouter","#divTarget");
		
	}
	
	public function result(){
		var_dump($_POST);
	//	echo JsUtils::doSomethingOn("append", "<p>".$_POST['sport']."</p>");
		
	}
}